Optimal. Leaf size=51 \[ -\frac{(d \cot (e+f x))^{n+3}}{d^3 f (n+3)}-\frac{(d \cot (e+f x))^{n+1}}{d f (n+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0527326, antiderivative size = 51, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.105, Rules used = {2607, 14} \[ -\frac{(d \cot (e+f x))^{n+3}}{d^3 f (n+3)}-\frac{(d \cot (e+f x))^{n+1}}{d f (n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2607
Rule 14
Rubi steps
\begin{align*} \int (d \cot (e+f x))^n \csc ^4(e+f x) \, dx &=\frac{\operatorname{Subst}\left (\int (-d x)^n \left (1+x^2\right ) \, dx,x,-\cot (e+f x)\right )}{f}\\ &=\frac{\operatorname{Subst}\left (\int \left ((-d x)^n+\frac{(-d x)^{2+n}}{d^2}\right ) \, dx,x,-\cot (e+f x)\right )}{f}\\ &=-\frac{(d \cot (e+f x))^{1+n}}{d f (1+n)}-\frac{(d \cot (e+f x))^{3+n}}{d^3 f (3+n)}\\ \end{align*}
Mathematica [A] time = 0.127219, size = 45, normalized size = 0.88 \[ -\frac{\cot (e+f x) \left ((n+1) \csc ^2(e+f x)+2\right ) (d \cot (e+f x))^n}{f (n+1) (n+3)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.757, size = 10907, normalized size = 213.9 \begin{align*} \text{output too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.73169, size = 204, normalized size = 4. \begin{align*} \frac{{\left (2 \, \cos \left (f x + e\right )^{3} -{\left (n + 3\right )} \cos \left (f x + e\right )\right )} \left (\frac{d \cos \left (f x + e\right )}{\sin \left (f x + e\right )}\right )^{n}}{{\left (f n^{2} -{\left (f n^{2} + 4 \, f n + 3 \, f\right )} \cos \left (f x + e\right )^{2} + 4 \, f n + 3 \, f\right )} \sin \left (f x + e\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (d \cot \left (f x + e\right )\right )^{n} \csc \left (f x + e\right )^{4}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]